]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Fix fading out dialog
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Mar 2023 19:41:48 +0000 (20:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 19 Mar 2023 19:54:45 +0000 (19:54 +0000)
The dialog's state property has been read-only since
commit 2f6323afc, but the callback at the end of the
fade transition still tries to set the value directly.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6506

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2696>

js/ui/modalDialog.js

index 64800a376dfd7e0b442ff70abca750575abed47b..0561b8b155a3adb15f716f40c3a4ba065eb4ec9b 100644 (file)
@@ -282,7 +282,7 @@ var ModalDialog = GObject.registerClass({
             opacity: 0,
             duration: FADE_OUT_DIALOG_TIME,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,
-            onComplete: () => (this.state = State.FADED_OUT),
+            onComplete: () => this._setState(State.FADED_OUT),
         });
     }
 });